import { IpcWindow } from "@/util/IpcWindow/IpcWindow";
import { WindowName } from "@/mdesign-lib/mdesign-main.js";

export type Params = {
  projectId: string;
  title: string;
  stepKeys: string[];
  moreBtnCondition?: string;
  selectedIds?: string[];
  stereotype?: string;
  defaultName?: string;
  minDate?: string;
  maxDate?: string;
  activeStepKey?: string;
  disableStepKey?: string[];
  stepParams?: string;
};

export type Result = {
  modelId: string;
  modelIds?: string[];
  startTime?: string;
  endTime?: string;
  timeLineId?: string;
};

export type CloseData = {
  success: boolean;
  result: Result;
};
export const GanttAddExistingWindow = new IpcWindow<Params, CloseData>(WindowName.GanttAddExistingWindow);
export const GanttAddExistingWindowBig = new IpcWindow<Params, CloseData>(WindowName.GanttAddExistingWindowBig);
